package com.ruoyi.kiku.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.kiku.mapper.KikuSuperWordsMapper;
import com.ruoyi.kiku.domain.KikuSuperWords;
import com.ruoyi.kiku.service.IKikuSuperWordsService;

/**
 * 超话信息Service业务层处理
 * 
 * @author TT
 * @date 2025-08-03
 */
@Service
public class KikuSuperWordsServiceImpl implements IKikuSuperWordsService 
{
    @Autowired
    private KikuSuperWordsMapper kikuSuperWordsMapper;

    /**
     * 查询超话信息
     * 
     * @param id 超话信息主键
     * @return 超话信息
     */
    @Override
    public KikuSuperWords selectKikuSuperWordsById(Long id)
    {
        return kikuSuperWordsMapper.selectKikuSuperWordsById(id);
    }

    /**
     * 查询超话信息列表
     * 
     * @param kikuSuperWords 超话信息
     * @return 超话信息
     */
    @Override
    public List<KikuSuperWords> selectKikuSuperWordsList(KikuSuperWords kikuSuperWords)
    {
        return kikuSuperWordsMapper.selectKikuSuperWordsList(kikuSuperWords);
    }

    /**
     * 新增超话信息
     * 
     * @param kikuSuperWords 超话信息
     * @return 结果
     */
    @Override
    public int insertKikuSuperWords(KikuSuperWords kikuSuperWords)
    {
        kikuSuperWords.setCreateTime(DateUtils.getNowDate());
        return kikuSuperWordsMapper.insertKikuSuperWords(kikuSuperWords);
    }

    /**
     * 修改超话信息
     * 
     * @param kikuSuperWords 超话信息
     * @return 结果
     */
    @Override
    public int updateKikuSuperWords(KikuSuperWords kikuSuperWords)
    {
        kikuSuperWords.setUpdateTime(DateUtils.getNowDate());
        return kikuSuperWordsMapper.updateKikuSuperWords(kikuSuperWords);
    }

    /**
     * 批量删除超话信息
     * 
     * @param ids 需要删除的超话信息主键
     * @return 结果
     */
    @Override
    public int deleteKikuSuperWordsByIds(Long[] ids)
    {
        return kikuSuperWordsMapper.deleteKikuSuperWordsByIds(ids);
    }

    /**
     * 删除超话信息信息
     * 
     * @param id 超话信息主键
     * @return 结果
     */
    @Override
    public int deleteKikuSuperWordsById(Long id)
    {
        return kikuSuperWordsMapper.deleteKikuSuperWordsById(id);
    }
}
